﻿namespace ACCOUNTING.LVY.Business
{
    using ACCOUNTING;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Data;
    using System.Runtime.InteropServices;
    using System.Windows.Forms;

    public class clsHoaHong
    {
        private string mDienGiai = "";
        private string mDuLieu = "";
        private int mDuyet = 0;
        private string mKhoa = "";
        private string mKhoaDoiTuong = "";
        private string mKhoaDonVi = "";
        private string mKhoaNhanVienSua = "";
        private string mKhoaNhanVienTao = "";
        private string mKhoaPhieuXuat = "";
        private string mKhoaTaiKhoanDoanhThu = "";
        private string mKhoaTaiKhoanThanhToan = "";
        private string mKhoaTaiKhoanThuLai = "";
        private string mLoaiTien = "";
        private string mNgayChungTu = "";
        private string mNgaySua = "";
        private string mNgayTao = "";
        private string mNguoiThuHuong = "";
        private int mSend = 0;
        private string mSoChungTu = "";
        private double mSoTienHoaHong = 0.0;
        private double mSoTienHoaHongNT = 0.0;
        private double mSoTienThuLai = 0.0;
        private double mSoTienThuLaiNT = 0.0;
        private double mTyGia = 0.0;
        private int mTyLeThuLai = 0;

        public void ClearAll()
        {
            this.mKhoa = "";
            this.mSoChungTu = "";
            this.mNgayChungTu = "";
            this.mKhoaPhieuXuat = "";
            this.mLoaiTien = "";
            this.mTyGia = 0.0;
            this.mSoTienHoaHongNT = 0.0;
            this.mSoTienHoaHong = 0.0;
            this.mDienGiai = "";
            this.mKhoaTaiKhoanDoanhThu = "";
            this.mKhoaTaiKhoanThanhToan = "";
            this.mKhoaTaiKhoanThuLai = "";
            this.mKhoaDoiTuong = "";
            this.mKhoaDonVi = "";
            this.mKhoaNhanVienTao = "";
            this.mNgayTao = "";
            this.mKhoaNhanVienSua = "";
            this.mNgaySua = "";
            this.mSend = 0;
        }

        public void ClearTemp(string strKhoaHoaHong)
        {
            string commandText = "DELETE FROM ST_HoaHongChiTietTmp WHERE KhoaHoaHong = '" + strKhoaHoaHong.Trim() + "'";
            DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
        }

        public bool DeleteData(string strKhoa)
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[2];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@Khoa", DbType.Int64, ParameterDirection.Input, strKhoa);
                commandParameters[1] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "ST_sp_HoaHongDel", commandParameters);
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[1].Value, 0, false))
                {
                    return false;
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public DataTable GetDataPrint(string strKhoa)
        {
            DataTable table;
            try
            {
                string commandText = " SELECT  XK.SoHoaDon, XK.NgayHoaDon,DT.Ten" + modGeneral.H_LANGUAGE + "  as TenDoiTuong, DT.Ma as Ma, HH.DienGiai, HH.SoTienHoaHongNT as SoTien  FROM ST_HoaHong HH  LEFT JOIN ST_XuatKho XK on HH.KhoaPhieuXuat = XK.Khoa  LEFT JOIN DM_DoiTuong DT on HH.KhoaDoiTuong = DT.Khoa  WHERE HH.Khoa = '" + strKhoa + "'";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetDataPrintHoaHong(string strKhoaDonVi, string strTuNgay, string strDenNgay, int IntLoaiBaoCao)
        {
            DataTable table;
            IDataParameter[] commandParameters = new IDataParameter[5];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, strKhoaDonVi);
                commandParameters[1] = DBHelper.createParameter("@TuNgay", DbType.Int64, ParameterDirection.Input, strTuNgay);
                commandParameters[2] = DBHelper.createParameter("@DenNgay", DbType.Int64, ParameterDirection.Input, strDenNgay);
                commandParameters[3] = DBHelper.createParameter("@Language", DbType.Int64, ParameterDirection.Input, modGeneral.H_LANGUAGE);
                commandParameters[4] = DBHelper.createParameter("@LoaiBaoCao", DbType.Int64, ParameterDirection.Input, IntLoaiBaoCao);
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.StoredProcedure, "BC_sp_BangKeHoaHong", commandParameters).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetDataPrintPhieuHoaHong(string strKhoa)
        {
            string commandText = "SELECT XK.SoChungTu As ChungTuBan,dbo.Char2Date(XK.NgayChungTu) As NgayChungTu, XK.SoHoaDon As SoHoaDonBan,  KH.Ten" + modGeneral.H_LANGUAGE + " As KhachHang, HH.NguoiThuHuong As NguoiThuHuong,  NV.Ten" + modGeneral.H_LANGUAGE + " As NhanVienBanHang, HH.LoaiTien, HH.TyGia, HH.SoTienHoaHongNT as TongTienNT, HH.SoTienHoaHong As TongTien, HH.SoTienThuLaiNT, HH.SoTienThuLai, HH.DienGiai,  H.Ma, H.Ten" + modGeneral.H_LANGUAGE + " As HangHoa, DVT.Ten" + modGeneral.H_LANGUAGE + " As DonViTinh, CT.SoLuong, CT.GiaBanNT as GiaBan, CT.TienBanNT As TienBan, CT.TienThue,  CT.TyLeHoaHong, CT.TienHoaHongNT as TienHoaHong  FROM ST_HoaHong HH Left join ST_XuatKho XK ON HH.KhoaPhieuXuat = XK.Khoa LEFT JOIN DM_DoiTuong KH ON HH.KhoaDoiTuong = KH.Khoa LEFT JOIN DM_DoiTuong NV ON XK.KhoaNhanVienBanHang=NV.Khoa LEFT JOIN ST_HoaHongChiTiet CT ON HH.Khoa = CT.KhoaHoaHong  LEFT JOIN DM_HangHoa H ON CT.KhoaHangHoa = H.Khoa LEFT JOIN DM_DonViTinh DVT ON CT.KhoaDonViTinh = DVT.Khoa  WHERE HH.Khoa = '" + strKhoa + "'";
            return DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
        }

        public DataTable GetDetails(string strKhoaHoaHong)
        {
            DataTable table;
            try
            {
                string commandText = " SELECT CT.Khoa, CT.KhoaKho, K.Ten" + modGeneral.H_LANGUAGE + " AS KhoHang,  CT.KhoaHangHoa, H.Ma, H.Ten" + modGeneral.H_LANGUAGE + " as HangHoa,  CT.SoLoHang, CT.SoSeri, CT.NgayNhap, CT.HanSuDung, CT.KhoaDonViTinh,  DV.Ten" + modGeneral.H_LANGUAGE + " as DonViTinh, CT.QuyCach, CT.SoLuong,  CT.GiaBanNT, CT.TienBanNT, CT.TyLeThue, CT.TienThue, CT.TyLeHoaHong, CT.TienHoaHongNT  FROM ST_HoaHongChiTiet CT left join DM_Kho K on CT.KhoaKho = K.Khoa  LEFT JOIN DM_HangHoa H on CT.KhoaHangHoa = H.Khoa  LEFT JOIN DM_DonViTinh DV on CT.KhoaDonViTinh = DV.Khoa  WHERE CT.KhoaHoaHong = '" + strKhoaHoaHong + "'";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public string GetKhoaHoaHong(string strKhoaHoaDon)
        {
            string str2;
            try
            {
                string commandText = " SELECT top 1 Khoa from ST_HoaHong Where KhoaPhieuXuat = '" + strKhoaHoaDon + "' Order by Khoa desc ";
                IDataReader dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    return Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                }
                str2 = "";
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                str2 = "";
                ProjectData.ClearProjectError();
            }
            return str2;
        }

        public DataTable GetList(string strConditions = "")
        {
            DataTable table;
            string str2 = "";
            try
            {
                if (strConditions.Trim() != "")
                {
                    str2 = " WHERE " + strConditions;
                }
                string commandText = "SELECT HH.Khoa, HH.SoChungTu, dbo.Char2Date(HH.NgayChungTu), XB.SoChungTu,  DT.Ten" + modGeneral.H_LANGUAGE + " as DoiTuong, HH.SoTienHoaHongNT, HH.SoTienHoaHong,  HH.DienGiai FROM ST_HoaHong HH left join DM_DoiTuong DT on HH.KhoaDoiTuong = DT.Khoa  LEFT join ST_XuatKho XB on HH.KhoaPhieuXuat = XB.Khoa " + str2;
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public DataTable GetListDropDown(string strKhoaPhieuXuat)
        {
            DataTable table;
            try
            {
                string commandText = "SELECT HH.Khoa, HH.SoChungTu, dbo.Char2Date(HH.NgayChungTu) as NgayChungTu,  DT.Ten" + modGeneral.H_LANGUAGE + " as DoiTuong, HH.SoTienHoaHongNT  FROM ST_HoaHong HH left join DM_DoiTuong DT on HH.KhoaDoiTuong = DT.Khoa  WHERE HH.KhoaPhieuXuat = '" + strKhoaPhieuXuat + "'";
                table = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]).Tables[0];
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                table = null;
                ProjectData.ClearProjectError();
                return table;
                ProjectData.ClearProjectError();
            }
            return table;
        }

        public bool Load(string pKhoa)
        {
            bool flag=false;
            try
            {
                string commandText = "SELECT * FROM ST_HoaHong WHERE Khoa = '" + pKhoa + "'";
                IDataReader dataReader = DBHelper.ExecuteReader(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[0]);
                if (dataReader.Read())
                {
                    this.mKhoa = Conversions.ToString(modGeneral.GetValue(dataReader, 0, modGeneral.typeOfColumn.GetString));
                    this.mSoChungTu = Conversions.ToString(modGeneral.GetValue(dataReader, 1, modGeneral.typeOfColumn.GetString));
                    this.mNgayChungTu = Conversions.ToString(modGeneral.GetValue(dataReader, 2, modGeneral.typeOfColumn.GetString));
                    this.mKhoaPhieuXuat = Conversions.ToString(modGeneral.GetValue(dataReader, 3, modGeneral.typeOfColumn.GetString));
                    this.mLoaiTien = Conversions.ToString(modGeneral.GetValue(dataReader, 4, modGeneral.typeOfColumn.GetString));
                    this.mTyGia = Conversions.ToDouble(modGeneral.GetValue(dataReader, 5, modGeneral.typeOfColumn.GetDecimal));
                    this.mSoTienHoaHongNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 6, modGeneral.typeOfColumn.GetDecimal));
                    this.mSoTienHoaHong = Conversions.ToDouble(modGeneral.GetValue(dataReader, 7, modGeneral.typeOfColumn.GetDecimal));
                    this.mTyLeThuLai = Conversions.ToInteger(modGeneral.GetValue(dataReader, 8, modGeneral.typeOfColumn.GetInt32));
                    this.mSoTienThuLaiNT = Conversions.ToDouble(modGeneral.GetValue(dataReader, 9, modGeneral.typeOfColumn.GetDecimal));
                    this.mSoTienThuLai = Conversions.ToDouble(modGeneral.GetValue(dataReader, 10, modGeneral.typeOfColumn.GetDecimal));
                    this.mDienGiai = Conversions.ToString(modGeneral.GetValue(dataReader, 11, modGeneral.typeOfColumn.GetString));
                    this.mKhoaTaiKhoanDoanhThu = Conversions.ToString(modGeneral.GetValue(dataReader, 12, modGeneral.typeOfColumn.GetString));
                    this.mKhoaTaiKhoanThanhToan = Conversions.ToString(modGeneral.GetValue(dataReader, 13, modGeneral.typeOfColumn.GetString));
                    this.mKhoaTaiKhoanThuLai = Conversions.ToString(modGeneral.GetValue(dataReader, 14, modGeneral.typeOfColumn.GetString));
                    this.mKhoaDoiTuong = Conversions.ToString(modGeneral.GetValue(dataReader, 15, modGeneral.typeOfColumn.GetString));
                    this.mNguoiThuHuong = Conversions.ToString(modGeneral.GetValue(dataReader, 0x10, modGeneral.typeOfColumn.GetString));
                    this.mKhoaDonVi = Conversions.ToString(modGeneral.GetValue(dataReader, 0x11, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNhanVienTao = Conversions.ToString(modGeneral.GetValue(dataReader, 0x12, modGeneral.typeOfColumn.GetString));
                    this.mNgayTao = Conversions.ToString(modGeneral.GetValue(dataReader, 0x13, modGeneral.typeOfColumn.GetString));
                    this.mKhoaNhanVienSua = Conversions.ToString(modGeneral.GetValue(dataReader, 20, modGeneral.typeOfColumn.GetString));
                    this.mNgaySua = Conversions.ToString(modGeneral.GetValue(dataReader, 0x15, modGeneral.typeOfColumn.GetString));
                    this.mSend = Conversions.ToInteger(modGeneral.GetValue(dataReader, 0x16, modGeneral.typeOfColumn.GetInt32));
                    this.mDuLieu = Conversions.ToString(modGeneral.GetValue(dataReader, 0x17, modGeneral.typeOfColumn.GetString));
                    this.mDuyet = Conversions.ToInteger(modGeneral.GetValue(dataReader, 0x18, modGeneral.typeOfColumn.GetInt32));
                }
                dataReader.Close();
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool Save()
        {
            bool flag=false;
            IDataParameter[] commandParameters = new IDataParameter[0x1b];
            try
            {
                commandParameters[0] = DBHelper.createParameter("@Khoa", DbType.Int64, ParameterDirection.Input, this.mKhoa);
                commandParameters[1] = DBHelper.createParameter("@SoChungTu", DbType.Int64, ParameterDirection.Input, this.mSoChungTu);
                commandParameters[2] = DBHelper.createParameter("@NgayChungTu", DbType.Int64, ParameterDirection.Input, this.mNgayChungTu);
                commandParameters[3] = DBHelper.createParameter("@KhoaPhieuXuat", DbType.Int64, ParameterDirection.Input, this.mKhoaPhieuXuat);
                commandParameters[4] = DBHelper.createParameter("@LoaiTien", DbType.Int64, ParameterDirection.Input, this.mLoaiTien);
                commandParameters[5] = DBHelper.createParameter("@TyGia", DbType.Date, ParameterDirection.Input, this.mTyGia);
                commandParameters[6] = DBHelper.createParameter("@SoTienHoaHongNT", DbType.Date, ParameterDirection.Input, this.mSoTienHoaHongNT);
                commandParameters[7] = DBHelper.createParameter("@SoTienHoaHong", DbType.Date, ParameterDirection.Input, this.mSoTienHoaHong);
                commandParameters[8] = DBHelper.createParameter("@TyLeThuLai", DbType.Double, ParameterDirection.Input, this.mTyLeThuLai);
                commandParameters[9] = DBHelper.createParameter("@SoTienThuLaiNT", DbType.Date, ParameterDirection.Input, this.mSoTienThuLaiNT);
                commandParameters[10] = DBHelper.createParameter("@SoTienThuLai", DbType.Date, ParameterDirection.Input, this.mSoTienThuLai);
                commandParameters[11] = DBHelper.createParameter("@DienGiai", DbType.Int64, ParameterDirection.Input, this.mDienGiai);
                commandParameters[12] = DBHelper.createParameter("@KhoaTaiKhoanDoanhThu", DbType.Int64, ParameterDirection.Input, this.mKhoaTaiKhoanDoanhThu);
                commandParameters[13] = DBHelper.createParameter("@KhoaTaiKhoanThanhToan", DbType.Int64, ParameterDirection.Input, this.mKhoaTaiKhoanThanhToan);
                commandParameters[14] = DBHelper.createParameter("@KhoaTaiKhoanThuLai", DbType.Int64, ParameterDirection.Input, this.mKhoaTaiKhoanThuLai);
                commandParameters[15] = DBHelper.createParameter("@KhoaDoiTuong", DbType.Int64, ParameterDirection.Input, this.mKhoaDoiTuong);
                commandParameters[0x10] = DBHelper.createParameter("@NguoiThuHuong", DbType.Int64, ParameterDirection.Input, this.mNguoiThuHuong);
                commandParameters[0x11] = DBHelper.createParameter("@KhoaDonVi", DbType.Int64, ParameterDirection.Input, this.mKhoaDonVi);
                commandParameters[0x12] = DBHelper.createParameter("@KhoaNhanVienTao", DbType.Int64, ParameterDirection.Input, this.mKhoaNhanVienTao);
                commandParameters[0x13] = DBHelper.createParameter("@NgayTao", DbType.Int64, ParameterDirection.Input, this.mNgayTao);
                commandParameters[20] = DBHelper.createParameter("@KhoaNhanVienSua", DbType.Int64, ParameterDirection.Input, this.mKhoaNhanVienSua);
                commandParameters[0x15] = DBHelper.createParameter("@NgaySua", DbType.Int64, ParameterDirection.Input, this.mNgaySua);
                commandParameters[0x16] = DBHelper.createParameter("@Send", DbType.Double, ParameterDirection.Input, this.mSend);
                commandParameters[0x17] = DBHelper.createParameter("@DuLieu", DbType.Int64, ParameterDirection.Input, this.mDuLieu);
                commandParameters[0x18] = DBHelper.createParameter("@Duyet", DbType.Double, ParameterDirection.Input, this.mDuyet);
                commandParameters[0x19] = DBHelper.createParameter("@pAmQuy", DbType.Double, ParameterDirection.Output, 0);
                commandParameters[0x1a] = DBHelper.createParameter("@pError", DbType.Double, ParameterDirection.Output, 0);
                DBHelper.ExecuteNonQuery(modGeneral.ConnectionString, CommandType.StoredProcedure, "ST_sp_HoaHong", commandParameters);
                if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[0x1a].Value, 0, false))
                {
                    if (Microsoft.VisualBasic.CompilerServices.Operators.ConditionalCompareObjectNotEqual(commandParameters[0x19].Value, 0, false))
                    {
                        LVYModule.ShowWarning(modGeneral.Tranlated("Nghiệp vụ kh\x00f4ng thể thực hiện được v\x00ec \x00e2m quỹ!", ""));
                    }
                    return false;
                }
                flag = true;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                flag = false;
                ProjectData.ClearProjectError();
                return flag;
                ProjectData.ClearProjectError();
            }
            return flag;
        }

        public bool TrungSoChungTu(string pSoCT, string pKhoa)
        {
            bool flag2;
            string commandText = "";
            IDataParameter parameter = null;
            try
            {
                commandText = "SELECT * FROM ST_HoaHong WHERE RTRIM(SoChungTu) = '" + pSoCT.Trim() + "' AND RTRIM(Khoa) <> '" + pKhoa.Trim() + "'";
                bool flag = DBHelper.ExecuteDataset(modGeneral.ConnectionString, CommandType.Text, commandText, new IDataParameter[] { parameter }).Tables[0].Rows.Count > 0;
                flag2 = flag;
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message);
                flag2 = true;
                ProjectData.ClearProjectError();
                return flag2;
                ProjectData.ClearProjectError();
            }
            return flag2;
        }

        public string DienGiai
        {
            get
            {
                return this.mDienGiai;
            }
            set
            {
                this.mDienGiai = value;
            }
        }

        public string DuLieu
        {
            get
            {
                return this.mDuLieu;
            }
            set
            {
                this.mDuLieu = value;
            }
        }

        public int Duyet
        {
            get
            {
                return this.mDuyet;
            }
            set
            {
                this.mDuyet = value;
            }
        }

        public string Khoa
        {
            get
            {
                return this.mKhoa;
            }
            set
            {
                this.mKhoa = value;
            }
        }

        public string KhoaDoiTuong
        {
            get
            {
                return this.mKhoaDoiTuong;
            }
            set
            {
                this.mKhoaDoiTuong = value;
            }
        }

        public string KhoaDonVi
        {
            get
            {
                return this.mKhoaDonVi;
            }
            set
            {
                this.mKhoaDonVi = value;
            }
        }

        public string KhoaNhanVienSua
        {
            get
            {
                return this.mKhoaNhanVienSua;
            }
            set
            {
                this.mKhoaNhanVienSua = value;
            }
        }

        public string KhoaNhanVienTao
        {
            get
            {
                return this.mKhoaNhanVienTao;
            }
            set
            {
                this.mKhoaNhanVienTao = value;
            }
        }

        public string KhoaPhieuXuat
        {
            get
            {
                return this.mKhoaPhieuXuat;
            }
            set
            {
                this.mKhoaPhieuXuat = value;
            }
        }

        public string KhoaTaiKhoanDoanhThu
        {
            get
            {
                return this.mKhoaTaiKhoanDoanhThu;
            }
            set
            {
                this.mKhoaTaiKhoanDoanhThu = value;
            }
        }

        public string KhoaTaiKhoanThanhToan
        {
            get
            {
                return this.mKhoaTaiKhoanThanhToan;
            }
            set
            {
                this.mKhoaTaiKhoanThanhToan = value;
            }
        }

        public string KhoaTaiKhoanThuLai
        {
            get
            {
                return this.mKhoaTaiKhoanThuLai;
            }
            set
            {
                this.mKhoaTaiKhoanThuLai = value;
            }
        }

        public string LoaiTien
        {
            get
            {
                return this.mLoaiTien;
            }
            set
            {
                this.mLoaiTien = value;
            }
        }

        public string NgayChungTu
        {
            get
            {
                return this.mNgayChungTu;
            }
            set
            {
                this.mNgayChungTu = value;
            }
        }

        public string NgaySua
        {
            get
            {
                return this.mNgaySua;
            }
            set
            {
                this.mNgaySua = value;
            }
        }

        public string NgayTao
        {
            get
            {
                return this.mNgayTao;
            }
            set
            {
                this.mNgayTao = value;
            }
        }

        public string NguoiThuHuong
        {
            get
            {
                return this.mNguoiThuHuong;
            }
            set
            {
                this.mNguoiThuHuong = value;
            }
        }

        public int Send
        {
            get
            {
                return this.mSend;
            }
            set
            {
                this.mSend = value;
            }
        }

        public string SoChungTu
        {
            get
            {
                return this.mSoChungTu;
            }
            set
            {
                this.mSoChungTu = value;
            }
        }

        public double SoTienHoaHong
        {
            get
            {
                return this.mSoTienHoaHong;
            }
            set
            {
                this.mSoTienHoaHong = value;
            }
        }

        public double SoTienHoaHongNT
        {
            get
            {
                return this.mSoTienHoaHongNT;
            }
            set
            {
                this.mSoTienHoaHongNT = value;
            }
        }

        public double SoTienThuLai
        {
            get
            {
                return this.mSoTienThuLai;
            }
            set
            {
                this.mSoTienThuLai = value;
            }
        }

        public double SoTienThuLaiNT
        {
            get
            {
                return this.mSoTienThuLaiNT;
            }
            set
            {
                this.mSoTienThuLaiNT = value;
            }
        }

        public double TyGia
        {
            get
            {
                return this.mTyGia;
            }
            set
            {
                this.mTyGia = value;
            }
        }

        public int TyLeThuLai
        {
            get
            {
                return this.mTyLeThuLai;
            }
            set
            {
                this.mTyLeThuLai = value;
            }
        }
    }
}

